package com.iaiai.cobra.repository.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.iaiai.cobra.repository.bean.UserPost;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created with UserPostMapper.
 * Package: com.iaiai.cobra.repository.mapper
 * Author: iaiai
 * Create Time: 2024/7/2 21:42
 * QQ: 176291935
 * Email: 176291935@qq.com
 * Description:
 */
@Mapper
public interface UserPostMapper extends BaseMapper<UserPost> {

    List<UserPost> queryUser(@Param("userId") Long userId);

    //删除
    void delUserPost(@Param("userId") Long userId,@Param("postId") Long postId);

}
